package cn.com.cifi.mars.constant;

/**
* @Description:  操盘方式枚举
* @Author: wy
* @Date:
*/

public enum OpmarketingEnum {

    LIANHECP("LIANHECP","联合操盘"),
    DULICP("DULICP","独立操盘"),
    BUCP("BUCP","不操盘"),

    ;


    private String key;
    private String value;

    OpmarketingEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }


    public static String getValueByKey(String key){
        for(OpmarketingEnum opmarketingEnum:OpmarketingEnum.values()){
            if(key.equals(opmarketingEnum.getKey())){
                return opmarketingEnum.getValue();
            }
        }
        return  null;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

    }
